how to get integer value from string in sql server